package org.practice.service.bo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * BO(Business-Object)
 */
public class CartBO implements java.io.Serializable{
	private static final long serialVersionUID = 1234567L;
	private Integer userId;
	private double totalPrice;
	private double dangPrice;
	//删除的条目集合
	private List<CartItemBO> dropCartItems = new ArrayList<CartItemBO>();
	//有效的条目集合
	private List<CartItemBO> effectiveCartItems = new ArrayList<CartItemBO>();
	//购物车总条目
	private Map<Integer, CartItemBO> cartItems=new HashMap<Integer, CartItemBO>();
	
	
	public CartBO(Integer userId){
		this.userId=userId;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Map<Integer, CartItemBO> getCartItems() {
		return cartItems;
	}
	public void setCartItems(Map<Integer, CartItemBO> cartItems) {
		this.cartItems = cartItems;
	}
	public double getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}
	public double getDangPrice() {
		return dangPrice;
	}
	public void setDangPrice(double dangPrice) {
		this.dangPrice = dangPrice;
	}
	public List<CartItemBO> getDropCartItems() {
		return dropCartItems;
	}
	public void setDropCartItems(List<CartItemBO> dropCartItems) {
		this.dropCartItems = dropCartItems;
	}
	public List<CartItemBO> getEffectiveCartItems() {
		return effectiveCartItems;
	}
	public void setEffectiveCartItems(List<CartItemBO> effectiveCartItems) {
		this.effectiveCartItems = effectiveCartItems;
	}
	
}
